package subject_set.offer100;

/**
 * @author haomin
 * @date 2022/10/27 16:28
 **/
public class Offer65 {
    class Solution {
        public int add(int a, int b) {
            while(b != 0){
                int carry = (a & b) << 1;
                a ^= b;
                b = carry;
            }
            return a;
        }
    }
}